package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-询价/报价单明细信息对象 erp_king_inquiry_detail_info
 *
 * @author cxl
 * @date 2024-07-11
 */
@TableName ("erp_king_inquiry_detail_info")
@ApiModel (value = "金蝶-询价/报价单明细信息", description = "金蝶-询价/报价单明细信息")
@Data
@Accessors(chain = true)
public class KingInquiryDetailEntity {

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 询价单/报价单id */
    @ApiModelProperty ("询价单/报价单id")
    @TableField ("inquiry_id")
    @Excel (name = "询价单/报价单id")
    private String inquiryId;

    /** 类型(0询价单 1报价单) */
    @ApiModelProperty ("类型(0询价单 1报价单)")
    @TableField ("type")
    @Excel (name = "类型(0询价单 1报价单)")
    private String type;

    /** 物料id */
    @ApiModelProperty ("物料id")
    @TableField ("material_id")
    @Excel (name = "物料id")
    private String materialId;

    /** 物料编码 */
    @ApiModelProperty ("物料编码")
    @TableField ("material_code")
    @Excel (name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @ApiModelProperty ("物料名称")
    @TableField ("material_name")
    @Excel (name = "物料名称")
    private String materialName;

    /** 规格型号 */
    @ApiModelProperty ("规格型号")
    @TableField ("material_model")
    @Excel (name = "规格型号")
    private String materialModel;

    /** 询价/计价单位 */
    @ApiModelProperty ("询价/计价单位")
    @TableField ("unit")
    @Excel (name = "询价/计价单位")
    private String unit;

    /** 数量 */
    @ApiModelProperty ("数量")
    @TableField ("num")
    @Excel (name = "数量")
    private Integer num;

    /** 报价数量（报价单才有） */
    @TableField ("quotation_num")
    @ApiModelProperty ("报价数量（报价单才有）")
    private Integer quotationNum;

    /** 单价（报价单才有） */
    @TableField ("price")
    @ApiModelProperty ("单价（报价单才有）")
    private String price;

    /** 含税单价（报价单才有） */
    @TableField ("tax_price")
    @ApiModelProperty ("含税单价（报价单才有）")
    private String taxPrice;

    /** 税率（报价单才有） */
    @TableField ("tax")
    @ApiModelProperty ("税率（报价单才有")
    private String tax;

    /** 到货时间 */
    @ApiModelProperty ("到货时间")
    @TableField ("arrival_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "到货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrivalTime;

    /** 交货方式 */
    @ApiModelProperty ("交货方式")
    @TableField ("delivery_method")
    @Excel (name = "交货方式")
    private String deliveryMethod;

    /** 参考币别 */
    @ApiModelProperty ("参考币别")
    @TableField ("reference_currency")
    @Excel (name = "参考币别")
    private String referenceCurrency;

    /** 参考价 */
    @ApiModelProperty ("参考价")
    @TableField ("reference_price")
    @Excel (name = "参考价")
    private String referencePrice;

    /** 备注 */
    @ApiModelProperty ("备注")
    @TableField ("remark")
    @Excel (name = "备注")
    private String remark;

    /** 逻辑删除 */
    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    private Integer isUsed;

    @ApiModelProperty("物料明细分录信息")
    @TableField(exist = false)
    private KingInquiryDetailEntryEntity inquiryDetailEntry;

}
